<?php
	class FrequencyCap
	{
		public const IMAGE = 0;
		public const AD = 1;
		//
		private $sDefSrvType;
		private $uImprPerUsrLim;
		private $uImprPerUsrPerDayLim;
		//
		public function __construct()
		{
			$this->setImpressionPerUserLimit(0);
			$this->setImpressionPerUserPerDayLimit(0);
			$this->setDefaultServeType(FrequencyCap::IMAGE);
		}
		public function setImpressionPerUserLimit($value)
		{
			$this->uImprPerUsrLim = $value;
		}
		public function getImpressionPerUserLimit()
		{
			return $this->uImprPerUsrLim;
		}
		public function setImpressionPerUserPerDayLimit($value)
		{
			$this->uImprPerUsrPerDayLim = $value;
		}
		public function getImpressionPerUserPerDayLimit()
		{
			return $this->uImprPerUsrPerDayLim;
		}
		public function setDefaultServeType($value)
		{
			$this->sDefSrvType = $value;
		}
		public function getDefaultServeType()
		{
			return $this->sDefSrvType;
		}
	}
?>